package com.scuec.trainingmanagementsys.entity;
import java.util.Date;
public class Discussion {
    private Integer discussionId;
    private String discussionContent;
    private Integer teacherId;
    private Integer studentId;
    private Date createTime; // 数据库表中字段为CreateTime，对应实体类属性名改为createTime

    // 以下为数据库表中没有但实体类中存在的字段，根据实际需求决定是否保留
    private String userName;  // 数据库表中无此字段，若无需映射COALESCE结果可移除
    private String userType;  // 数据库表中无此字段，若无需映射CASE语句结果可移除

    // getters and setters
    public Integer getDiscussionId() {
        return discussionId;
    }
    public void setDiscussionId(Integer discussionId) {
        this.discussionId = discussionId;
    }
    public String getDiscussionContent() {
        return discussionContent;
    }
    public void setDiscussionContent(String discussionContent) {
        this.discussionContent = discussionContent;
    }
    public Integer getTeacherId() {
        return teacherId;
    }
    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }
    public Integer getStudentId() {
        return studentId;
    }
    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }
    public Date getCreateTime() { // 字段名改为与数据库一致的createTime
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    // 以下为可选字段的getter/setter，若保留字段则需保留方法
    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getUserType() {
        return userType;
    }
    public void setUserType(String userType) {
        this.userType = userType;
    }
}